package com.tao.china.translate.impl.baidu;

import java.io.Serializable;
import java.util.List;

import com.eyeieye.melody.util.StringUtil;



/**
 * @author liuchao
 * @version $Id: BaiduTransResult.java,v 0.1 2012-9-10 下午6:14:32 liuchao Exp $
 */
public class BaiduTransResult implements Serializable{
    private static final long serialVersionUID = 1L;
    //-----------------错误字段 start-----------------
    String error_code;
    String error_msg;
    String query;
    //-----------------错误字段 end-----------------
    String from;
    String to;
    List<TransResult> trans_result;
    
    public boolean isError() {
        if (StringUtil.isNotBlank(error_code))
            return true;
        return false;
    }
    
    public String getFrom() {
        return this.from;
    }
    public void setFrom(String from) {
        this.from = from;
    }
    public String getTo() {
        return this.to;
    }
    public void setTo(String to) {
        this.to = to;
    }
    public List<TransResult> getTrans_result() {
        return this.trans_result;
    }
    public void setTrans_result(List<TransResult> trans_result) {
        this.trans_result = trans_result;
    }
    public String getError_code() {
        return this.error_code;
    }
    public void setError_code(String error_code) {
        this.error_code = error_code;
    }
    public String getError_msg() {
        return this.error_msg;
    }
    public void setError_msg(String error_msg) {
        this.error_msg = error_msg;
    }
    public String getQuery() {
        return this.query;
    }
    public void setQuery(String query) {
        this.query = query;
    }
}